import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const dockerStore = new Vuex.Store({
  state: {
    dockerServer: '',
    container: '',
    image: ''
  },
  mutations: {
    setDockerServer: (state, data) => {
      state.dockerServer = data
    },
    setContainer: (state, data) => {
      state.container = data
    },
    setImage: (state, data) => {
      state.image = data
    }
  }
})

export default dockerStore
